package org.example.what_mall.service;

import org.example.what_mall.dto.GoodsDTO;
import org.example.what_mall.dto.OrderForm;
import org.example.what_mall.dto.SettleForm;
import org.example.what_mall.entity.Category;
import org.example.what_mall.vo.GoodsVO;
import org.example.what_mall.vo.OrderVO;

import java.util.List;

public interface IMallService {
    List<GoodsVO> getGoodsByType(Integer typeId);

    GoodsDTO getGoodsInfo(Integer id);

    List<GoodsVO> searchGoods(String keyword);

    void addOrder(OrderForm form);

    List<OrderVO> getOrderByState(Integer state, String token);

    void settleAccounts(SettleForm form);

    List<Category> getTypes();

    void confirmReceive(Integer id);
}
